
package ciicos.work.service;

import ciicos.work.entity.WorkInfoEntity;
import ciicos.work.model.workinfo.POAssetsVo;
import ciicos.work.model.workinfo.WorkInfoForm;
import ciicos.work.model.workinfo.WorkInfoPagination;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Date;
import java.util.List;

/**
 * 工单信息
 * 版本： V3.2.0
 * 版权：
 * 作者： 产研项目租
 * 日期： 2023-08-02
 */
public interface WorkInfoService extends IService<WorkInfoEntity> {


    List<WorkInfoEntity> getListNoNet(WorkInfoPagination workInfoPagination);

    List<WorkInfoEntity> getTypeListNoNet(WorkInfoPagination workInfoPagination, String dataType);

    List<WorkInfoEntity> getList(WorkInfoPagination workInfoPagination);

    List<WorkInfoEntity> getTypeList(WorkInfoPagination workInfoPagination, String dataType);


    WorkInfoEntity getInfo(String id);

    void delete(WorkInfoEntity entity);

    void create(WorkInfoEntity entity);

    boolean update(String id, WorkInfoEntity entity);

//  子表方法

    //列表子表数据方法

    //验证表单
    String checkForm(WorkInfoForm form, int i);



    // 查询进行中、已完成、未开始的工单
    List<WorkInfoEntity> getWorkInfo(String orgcode, Date start,Date end);




    // 获取该范围内的所有工单
    List<WorkInfoEntity> getAllWorkWithNoOrgCode(Date dayBegin, Date dayEnd);

    List<WorkInfoEntity> getAllWorkWithStatus(Date dayBegin, Date dayEnd);




    Integer getCountWithDateAndType(Date begin, Date end, String balconyCode);


    Double getHoursBetweenDate(String id, Date begin, Date end);
}
